<?php
	$link=mysqli_connect("localhost","root","","demo");
	$sql="select * from users";
	$result=mysqli_query($link,$sql);


	// $row=mysqli_fetch_row($result);


?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
	 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes"/>
	 <style type="text/css">
	 	*{margin: 0px;padding: 0px;}
	 	.item{
	 		display: flex;
	 		align-items: center;
	 		margin: 10px;
	 		border: 1px solid #333;
	 		padding: 10px;
	 	}
	 	.item img{
	 		width: 100px;
	 		height: 100px;
	 	}
	 	.right{
	 		margin-left: 20px;
	 	}
	 </style>
</head>
<body>
	<div class="container">

		<?php while($row=mysqli_fetch_row($result)){?>
		<div class="item">
			 <img src="http://admin.test.com:8081<?php echo $row[4];?>" /> 
			<div class="right">
				<p><?php echo $row[1];?></p>
				<p><?php echo $row[2]; ?>岁</p>
			</div>
		</div>
		<?php }?>
		
	</div>

</body>
</html>